<?php

class Application_Form_House extends Application_Form_RealEstate
{
	public function __construct($options = null)
    {
        parent::__construct($options);
		$this->setName('house');
		

		
		$room = new Zend_Form_Element_Text('room');
		$room->setLabel('Room nb:')
		->setRequired(true)
		->setFilters(array('StringTrim','StripTags'))
		->setValidators(array('NotEmpty'))
		->addValidator(new Zend_Validate_Digits());
		
		
		$yard = new Zend_Form_Element_Checkbox('yard');
		$yard->setLabel('Yard:')
		->addDecorator('Label',array('class'=>'form_label'))
		->setValue(1)
		->setAttrib('checked','');
		
		$pool = new Zend_Form_Element_Checkbox('pool');
		$pool->setLabel('Pool:')
		->setValue(1)
		->setAttrib('checked','');
		
		$garage = new Zend_Form_Element_Checkbox('garage');
		$garage->setLabel('Garage:')
		->setValue(1)
		->setAttrib('checked','');
		
		$balcony = new Zend_Form_Element_Checkbox('balcony');
		$balcony->setLabel('Balcony:')
		->setValue(1)
		->setAttrib('checked','');
		

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')
		->setLabel('Add');

		$elements = array( $room, $yard, $pool, $balcony, $garage, $submit);
		$this->addElements($elements);

		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/loginform.phtml'))));
	}
}